package com.tx.java.chapter7.exercise16;

/**
 *  测试向上转型
 */
public class Test {

    public static void main(String[] args) {
        /*BaseClass b = new ChildClass();
        //子类没有覆盖
        b.fly();*/
        ChildClass c = new ChildClass();
        c.fly();
    }
}